package com.goldgov.kcloud.core.json;
import org.gtiles.core.web.json.ClientMessage;
public class BaseJsonObject<T> implements JsonObject<T> {
   private T data;
   private String code;
   private String message;
   private ClientMessage[] clientmessagearray;

   public BaseJsonObject() {
      this((T)null);
   }

   public BaseJsonObject(T data) {
      this(data, "2000");
   }

   public BaseJsonObject(T data, String code) {
      this(data, code, (String)null);
   }

   public BaseJsonObject(T data, String code, String message) {
      this.data = data;
      this.code = code;
      this.message = message;
   }
   public BaseJsonObject(T data, String code, String message,ClientMessage[] clientmessagearray) {
      this.data = data;
      this.code = code;
      this.message = message;
      this.clientmessagearray = clientmessagearray;
   }

   public T getData() {
      return this.data;
   }
   public void setData(T data) {
      this.data = data;
   }
   public String getCode() {
      return this.code;
   }

   public void setCode(String code) {
      this.code = code;
   }

   public String getMessage() {
       return this.message;
   }
   public void setMessage(String message) {
      this.message = message;
   }
   public ClientMessage[] getClientmessagearray() {
		return clientmessagearray;
   }
   public void setClientmessagearray(ClientMessage[] clientmessagearray) {
		this.clientmessagearray = clientmessagearray;
   }
}